<?php

class ServiceModel extends Model{
	
	public function get_service_article_list(){
		$ArticleModel	=	new ArticleModel();
		$cat_name		=	"网店帮助分类";
		$parent_id		=	3;
		$cat_list		=	$ArticleModel->get_cat_list($parent_id);
		
		$service_article_list	=	array();
		
		foreach($cat_list as $k =>$cat){
			$cat_id 	=	$cat['cat_id'];
			$service_article_list[$k]['cat_id']			=	$cat_id;
			$service_article_list[$k]['cat_name']		=	$cat['cat_name'];
			$service_article_list[$k]['article_list']	= $ArticleModel->get_articlelist_bycatid($cat_id);
		}
		return $service_article_list;
	}
	
	
	
}





























